<template>
  <a-result status="404" title="404" sub-title="Sorry, the page you visited does not exist.">
    <template #extra>
      <a-button type="primary" @click="back">返回</a-button>
      <a-button type="primary" @click="toHome">首页</a-button>
      <a-button type="primary" @click="toLogin">登录</a-button>
    </template>
  </a-result>
</template>

<script>
import { logout } from '@gis/lib/views/login/utils.js';

export default {
  name: 'Exception404',
  methods: {
    back() {
      this.$router.back();
    },
    toHome() {
      this.$router.push({ name: 'root' });
    },
    toLogin() {
      logout(true);
    },
  },
};
</script>
